package com.wuzhuo.information.mapper;

import com.wuzhuo.information.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface userMapper {

    @Insert("INSERT INTO user(user_name, password) VALUES (#{userName},#{password})")
    void insert(User user);

    @Select("select * from user where user_name = #{userName} and password = #{password};")
    User getByUsernameAndPassword(User user);

    void read(List<Long> ids);
}
